{include file=$header_start}
{include file=$header_end}

{strip}
	<script type="text/javascript" src="{$siteroot}/includes/js/admin/checkall.js" /></script>
{/strip}

{literal}
	<script type="text/javascript">
    $(function(){
    	$(".someClass").tipTip();
    });
    
    $(function(){
    	$(".someClass").tipTip({maxWidth: "auto", edgeOffset: 10});
    });
    </script>
{/literal}
<div class="contain">
    {include file=$left_menu}
    <div class="right_contain">
        <div class="heading_box">
            Manage Logo Images 
            <a href="javascript:;" class="someClass" title="{$moduelArray.module_help_text}" style="float:right;">
                <img src="{$siteroot}/templates/admin/img/topic_icon6.png" />
            </a>
        </div>
        <div class="whitebox">
            <!--Message Div Start-->
            {if $msg}
                <div class="masg_div">{$msg}</div>
            {/if}
            <!--Message Div End-->
            
            <div>
            	<!--Form Contain start-->
                <div class="table_viewbox">
                    <!--<h2>Table Design</h2>-->
                    <form name="searchFrm" id="searchFrm" method="post" action="{$siteroot}/admin/home.php?q=manageusers">
                        <table width="100%" border="0" cellpadding="3" cellspacing="5">
                            <tr>
                                <td align="left">
                                    <input type="button" name="add" id="add" value="Add Logo Image" class="admin_btn" onclick="javascript: window.location='{$siteroot}/admin/home.php?q=addImage';" />
                                	<!--<input type="button" name="add" id="add" value="Add New User" class="admin_btn" onclick="javascript: window.location='{$siteroot}/admin/home.php?q=addnewuser';" />-->
                                    &nbsp;
                                </td>
                                <!--<td align="right"><input type="text" name="search" id="search" class="input41" value="{if $search neq ''}{$search}{else}Email{/if}" onfocus="this.value=''" onblur="if(this.value=='')this.value='Email'" />&nbsp;<input type="submit" name="add" id="add" value="Search" class="admin_btn" />&nbsp;<input type="button" name="add" id="add" value="Clear" class="admin_btn" onclick="javascript: window.location='{$siteroot}/admin/home.php?q=manageusers';" /></td>-->
                            </tr>
                        </table>
                    </form>
                    <form name="frm" id="frm" action="" method="post" >
                        <input type="hidden" name="hidden_pageno" id="hidden_pageno" value="{$page}" />
                        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_viewbox">
                            <tr>
                                <th width="5%" style="text-align:center;">#</th>
                                <th width="60%">Logo</th>
                                <th width="30%">Action</th>
                            </tr>
                            {if $imageArray}
                                {section name=i loop=$imageArray}
                                    <tr class="inactiverow" id="tr_{$imageArray[i].id}">
                                        <td align="center">{$newid}</td>
                                        <td>{$imageArray[i].image_name}</td>
                                        <td>
                                            <span>
                                                {if $imageArray[i].status eq '1'}
                                                        <a href="{$siteroot}/admin/home.php?q=manageimages&id={$imageArray[i].image_id|base64_encode}&action=status&status={$imageArray[i].status}&page={$page}" onclick="javascript:return confirm('Are you sure do you want to change status?');" title="Currently Active"><img src="{$siteroot}/templates/admin/img/icon_correct.png" /></a>
                                                {else}
                                                        <a href="{$siteroot}/admin/home.php?q=manageimages&id={$imageArray[i].image_id|base64_encode}&action=status&status={$imageArray[i].status}&page={$page}" onclick="javascript:return confirm('Are you sure do you want to change status?');" title="Currently Inactive"><img src="{$siteroot}/templates/admin/img/close.png" /></a>
                                                {/if}
                                            </span>
                                        	<span><a href="{$siteroot}/admin/home.php?q=imagedetails&id={$imageArray[i].image_id|base64_encode}&page={$page}"><img src="{$siteroot}/templates/admin/img/icon-search.png" title="Image Details" /></a></span>
                                            <span><a href="{$siteroot}/admin/home.php?q=manageimages&id={$imageArray[i].image_id|base64_encode}&action=delete&page={$page}" title="Delete Logo"><img src="{$siteroot}/templates/admin/img/icon-delete.png" onclick="javascript:return confirm('Are you sure do you want to delete this record?');" /></a></span>
                                        </td>
                                    </tr>
                                    <div style="display:none">{$newid++}</div>
                                {/section}
                            {else}
                                <tr>
                                    <td colspan="3" align="center" class="error">Record Not Found</td>
                                </tr>
                            {/if}
                            <tr>
                                <td colspan="3">
                                    <div class="pagination">
                                        {if $pagination}{$pagination}{/if}
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </form>
                </div>
            	<!--Form Contain end--> 
            </div>
        </div>
    </div>
    <div class="clear"></div>
</div>
{include file=$footer}